<div class="panel-default">
  <table lay-filter="demo" lay-size='lg'>
    <thead>
      <tr>

        <th lay-data="{field:'water_balance'}"><%= Hydropower.human_attribute_name(:water_balance) %></th>

        <th lay-data="{field:'electric_balance'}"><%= Hydropower.human_attribute_name(:electric_balance) %></th>

        <th lay-data="{field:'operation',width:200}"></th>
      </tr>
    </thead>

    <tbody>
      <% @hydropowers.each do |hydropower| %>
        <tr>

          <td><%= hydropower.water_balance %></td>

          <td><%= hydropower.electric_balance %></td>

          <td>
            <%= link_to [:admin, hydropower], class: "label label-primary" do -%><i class="iconfont icon-chakan"></i>查看<% end %>
            <%= link_to edit_admin_hydropower_path(hydropower), class: "label" do -%><i class="iconfont icon-bianji"></i>编辑<% end %>
            <%= link_to [:admin, hydropower], method: :delete, data: { confirm: '确定删除吗? 注意此操作无法撤销！' }, class: "label label-danger" do -%><i class="iconfont icon-shanchu"></i>删除<% end %>
          </td>
        </tr>
      <% end %>
    </tbody>
  </table>
  <%= link_to new_admin_hydropower_path do -%><button type="button" class="layui-btn"><i class="layui-icon">&#xe608;</i> <%= t('actions.new') + Hydropower.model_name.human %></button><% end %>
</div>



